package com.flow.dao;

import java.util.List;

import com.flow.model.PagerModel;
import com.flow.model.RoleTab;

/**
 * 角色Dao接口
 * @author wang
 * @2016-1-6
 * IRoleTab.java
 *
 */
public interface IRoleTabDao<T> {

	public boolean insertRoleTab(RoleTab roleTab);

	public boolean updateRoleTab(RoleTab roleTab);
	
	public boolean deleteRoleTab(RoleTab roleTab);
	
	public RoleTab findRoleTabByHql(String hql);

	public RoleTab findRoleTabByHql(String hql, Object param);

	public RoleTab findRoleTabByHql(String hql, List<Object> params);

	public int universalMethodRoleTab(String hql);
	
	public int universalMethodRoleTab(String hql, Object param);
	
	public int universalMethodRoleTab(String hql, List<Object> params);
	
	public List<T> findRoleTabAllByHql(String hql);

	public List<T> findRoleTabAllByHql(String hql, Object param);

	public List<T> findRoleTabAllByHql(String hql, List<Object> params);

	public PagerModel findRoleTabPagerModeled(PagerModel pager, String hql);
	
	public PagerModel findRoleTabPagerModeled(PagerModel pager, String hql, Object param);
	
	public PagerModel findRoleTabPagerModeled(PagerModel pager, String hql, List<Object> params);
	
}
